import request from '@/utils/request'

export function searchAll(pageNo, pageSize) {
  return request({
    url: '/perf/agent/searchAll',
    method: 'get',
    params: { pageNo, pageSize }
  })
}

export function searchById(id) {
  return request({
    url: '/perf/agent/searchById',
    method: 'get',
    params: { id }
  })
}

export function shutdownAgent(id) {
  return request({
    url: '/perf/agent/shutdownAgent',
    method: 'get',
    params: { id }
  })
}

export function startupAgent(id) {
  return request({
    url: '/perf/agent/startupAgent',
    method: 'get',
    params: { id }
  })
}
